#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_radioButton_male_clicked()
{
   if(ui->radioButton_male->isChecked())
       ui->label->setText("你的性别是: 男");
}

void Widget::on_radioButton_woman_clicked()
{
   if(ui->radioButton_woman->isChecked())
       ui->label->setText("你的性别是: 女");
}

void Widget::on_radioButton_other_clicked()
{
   if(ui->radioButton_other->isChecked())
       ui->label->setText("你的性别是: 其他");
}


